// import { Configuration } from "webpack";
const path = require("path");
const RemoveCommentsPlugin = require("./utils/removecomments/remove-comments-plugin");
/**
 * @type {Configuration}
 */
const config = {
  mode: "none",
  entry: "./src/index.js", // 入口文件
  output: { // 输出文件
    filename: "bundle.js",
    path: path.resolve(__dirname, "./dist"),
  },
  module: {
    rules: [
      {
        test: /\.css$/,
        use: ['style-loader', 'css-loader']
      },
      {
        test: /\.md/,
        use: ['html-loader', "./utils/markdown/markdown-loader"]
      }
    ]
  },
  plugins: [
    // new RemoveCommentsPlugin(),
  ]
};
module.exports = config;
